.class public Lcom/estrongs/android/widget/n;
.super Ljava/lang/Object;
.source "MyPopupWindow.java"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/estrongs/android/widget/n$d;,
        Lcom/estrongs/android/widget/n$c;
    }
.end annotation


# static fields
.field private static D:I = -0x1


# instance fields
.field private A:Landroid/view/animation/ScaleAnimation;

.field protected B:Landroid/graphics/Rect;

.field private C:Z

.field private a:Landroid/content/Context;

.field private b:Landroid/view/WindowManager;

.field private c:Z

.field private d:Landroid/view/View;

.field private e:Landroid/view/View;

.field private f:Z

.field private g:Z

.field private h:Z

.field private i:Z

.field private j:Z

.field private k:Landroid/view/View$OnTouchListener;

.field private l:I

.field private m:I

.field n:Landroid/view/WindowManager$LayoutParams;

.field private o:I

.field private p:I

.field private q:Landroid/graphics/Rect;

.field private r:Landroid/graphics/drawable/Drawable;

.field private s:I

.field private t:Lcom/estrongs/android/widget/n$c;

.field private u:Z

.field v:Lcom/estrongs/android/widget/n$d;

.field w:Landroid/widget/RelativeLayout$LayoutParams;

.field private x:I

.field private y:I

.field private z:Landroid/view/animation/ScaleAnimation;


# direct methods
.method static constructor <clinit>()V
    .locals 0

    return-void
.end method

.method protected constructor <init>(Landroid/view/View;IIZ)V
    .locals 2

    .line 3
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    const/4 v0, 0x1

    .line 4
    iput-boolean v0, p0, Lcom/estrongs/android/widget/n;->g:Z

    const/4 v1, 0x0

    .line 5
    iput-boolean v1, p0, Lcom/estrongs/android/widget/n;->h:Z

    .line 6
    iput-boolean v0, p0, Lcom/estrongs/android/widget/n;->i:Z

    const/16 v0, 0x3e8

    .line 7
    iput v0, p0, Lcom/estrongs/android/widget/n;->s:I

    .line 8
    iput-boolean v1, p0, Lcom/estrongs/android/widget/n;->u:Z

    .line 9
    iput v1, p0, Lcom/estrongs/android/widget/n;->x:I

    .line 10
    iput-boolean v1, p0, Lcom/estrongs/android/widget/n;->C:Z

    if-eqz p1, :cond_0

    .line 11
    invoke-virtual {p1}, Landroid/view/View;->getContext()Landroid/content/Context;

    move-result-object v0

    iput-object v0, p0, Lcom/estrongs/android/widget/n;->a:Landroid/content/Context;

    const-string v1, "window"

    .line 12
    invoke-virtual {v0, v1}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/view/WindowManager;

    iput-object v0, p0, Lcom/estrongs/android/widget/n;->b:Landroid/view/WindowManager;

    .line 13
    :cond_0
    invoke-virtual {p0, p1}, Lcom/estrongs/android/widget/n;->b(Landroid/view/View;)V

    .line 14
    invoke-virtual {p0, p2}, Lcom/estrongs/android/widget/n;->c(I)V

    .line 15
    invoke-virtual {p0, p3}, Lcom/estrongs/android/widget/n;->b(I)V

    .line 16
    invoke-virtual {p0, p4}, Lcom/estrongs/android/widget/n;->a(Z)V

    .line 17
    sget p1, Lcom/estrongs/android/widget/n;->D:I

    const/4 p2, -0x1

    if-ne p1, p2, :cond_1

    .line 18
    iget-object p1, p0, Lcom/estrongs/android/widget/n;->a:Landroid/content/Context;

    const/high16 p2, 0x42400000    # 48.0f

    invoke-static {p1, p2}, Les/fy;->a(Landroid/content/Context;F)I

    move-result p1

    sput p1, Lcom/estrongs/android/widget/n;->D:I

    :cond_1
    return-void
.end method

.method protected constructor <init>(Landroid/view/View;Landroid/graphics/Rect;)V
    .locals 1

    const/4 v0, 0x0

    .line 1
    invoke-direct {p0, p1, v0, v0, v0}, Lcom/estrongs/android/widget/n;-><init>(Landroid/view/View;IIZ)V

    .line 2
    iput-object p2, p0, Lcom/estrongs/android/widget/n;->B:Landroid/graphics/Rect;

    return-void
.end method

.method static synthetic a(Lcom/estrongs/android/widget/n;)Landroid/view/View$OnTouchListener;
    .locals 0

    .line 2
    iget-object p0, p0, Lcom/estrongs/android/widget/n;->k:Landroid/view/View$OnTouchListener;

    return-object p0
.end method

.method private a(Landroid/os/IBinder;)Landroid/view/WindowManager$LayoutParams;
    .locals 9

    .line 19
    iget-object v0, p0, Lcom/estrongs/android/widget/n;->b:Landroid/view/WindowManager;

    invoke-interface {v0}, Landroid/view/WindowManager;->getDefaultDisplay()Landroid/view/Display;

    move-result-object v0

    invoke-virtual {v0}, Landroid/view/Display;->getHeight()I

    move-result v0

    iput v0, p0, Lcom/estrongs/android/widget/n;->o:I

    .line 20
    iget-object v0, p0, Lcom/estrongs/android/widget/n;->b:Landroid/view/WindowManager;

    invoke-interface {v0}, Landroid/view/WindowManager;->getDefaultDisplay()Landroid/view/Display;

    move-result-object v0

    invoke-virtual {v0}, Landroid/view/Display;->getWidth()I

    move-result v0

    iput v0, p0, Lcom/estrongs/android/widget/n;->p:I

    .line 21
    new-instance v0, Landroid/view/WindowManager$LayoutParams;

    iget v2, p0, Lcom/estrongs/android/widget/n;->p:I

    iget v3, p0, Lcom/estrongs/android/widget/n;->o:I

    iget v6, p0, Lcom/estrongs/android/widget/n;->s:I

    const/4 v4, 0x0

    const/4 v5, 0x0

    const/16 v7, 0x400

    const/4 v8, 0x0

    move-object v1, v0

    invoke-direct/range {v1 .. v8}, Landroid/view/WindowManager$LayoutParams;-><init>(IIIIIII)V

    const/16 v1, 0x33

    .line 22
    iput v1, v0, Landroid/view/WindowManager$LayoutParams;->gravity:I

    .line 23
    iget v1, p0, Lcom/estrongs/android/widget/n;->l:I

    iput v1, v0, Landroid/view/WindowManager$LayoutParams;->width:I

    .line 24
    iget v1, p0, Lcom/estrongs/android/widget/n;->m:I

    iput v1, v0, Landroid/view/WindowManager$LayoutParams;->height:I

    .line 25
    iget-object v1, p0, Lcom/estrongs/android/widget/n;->r:Landroid/graphics/drawable/Drawable;

    if-eqz v1, :cond_0

    .line 26
    invoke-virtual {v1}, Landroid/graphics/drawable/Drawable;->getOpacity()I

    move-result v1

    iput v1, v0, Landroid/view/WindowManager$LayoutParams;->format:I

    goto :goto_0

    :cond_0
    const/4 v1, -0x3

    .line 27
    iput v1, v0, Landroid/view/WindowManager$LayoutParams;->format:I

    .line 28
    :goto_0
    iget v1, v0, Landroid/view/WindowManager$LayoutParams;->flags:I

    invoke-direct {p0, v1}, Lcom/estrongs/android/widget/n;->d(I)I

    move-result v1

    iput v1, v0, Landroid/view/WindowManager$LayoutParams;->flags:I

    .line 29
    iget v1, p0, Lcom/estrongs/android/widget/n;->s:I

    iput v1, v0, Landroid/view/WindowManager$LayoutParams;->type:I

    .line 30
    iput-object p1, v0, Landroid/view/WindowManager$LayoutParams;->token:Landroid/os/IBinder;

    const/16 p1, 0x20

    .line 31
    iput p1, v0, Landroid/view/WindowManager$LayoutParams;->softInputMode:I

    .line 32
    new-instance p1, Ljava/lang/StringBuilder;

    invoke-direct {p1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v1, "PopupWindow:"

    invoke-virtual {p1, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p0}, Ljava/lang/Object;->hashCode()I

    move-result v1

    invoke-static {v1}, Ljava/lang/Integer;->toHexString(I)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {p1, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p1

    invoke-virtual {v0, p1}, Landroid/view/WindowManager$LayoutParams;->setTitle(Ljava/lang/CharSequence;)V

    return-object v0
.end method

.method private a(Landroid/view/WindowManager$LayoutParams;)V
    .locals 2

    .line 16
    iget-object v0, p0, Lcom/estrongs/android/widget/n;->a:Landroid/content/Context;

    invoke-virtual {v0}, Landroid/content/Context;->getPackageName()Ljava/lang/String;

    move-result-object v0

    iput-object v0, p1, Landroid/view/WindowManager$LayoutParams;->packageName:Ljava/lang/String;

    .line 17
    iget-object v0, p0, Lcom/estrongs/android/widget/n;->b:Landroid/view/WindowManager;

    iget-object v1, p0, Lcom/estrongs/android/widget/n;->e:Landroid/view/View;

    invoke-interface {v0, v1, p1}, Landroid/view/WindowManager;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V

    const/4 p1, 0x1

    .line 18
    iput-boolean p1, p0, Lcom/estrongs/android/widget/n;->c:Z

    return-void
.end method

.method private a(Landroid/widget/RelativeLayout$LayoutParams;)V
    .locals 4

    .line 48
    new-instance v0, Landroid/graphics/Rect;

    invoke-direct {v0}, Landroid/graphics/Rect;-><init>()V

    .line 49
    iget-object v1, p0, Lcom/estrongs/android/widget/n;->a:Landroid/content/Context;

    check-cast v1, Landroid/app/Activity;

    invoke-virtual {v1}, Landroid/app/Activity;->getWindow()Landroid/view/Window;

    move-result-object v1

    invoke-virtual {v1}, Landroid/view/Window;->getDecorView()Landroid/view/View;

    move-result-object v1

    .line 50
    invoke-virtual {v1, v0}, Landroid/view/View;->getWindowVisibleDisplayFrame(Landroid/graphics/Rect;)V

    .line 51
    iget v0, p0, Lcom/estrongs/android/widget/n;->y:I

    const/4 v1, -0x1

    const/4 v2, 0x0

    if-nez v0, :cond_1

    const/16 v0, 0xa

    .line 52
    invoke-virtual {p1, v0, v1}, Landroid/widget/RelativeLayout$LayoutParams;->addRule(II)V

    .line 53
    iput v2, p1, Landroid/widget/RelativeLayout$LayoutParams;->leftMargin:I

    .line 54
    iput v2, p1, Landroid/widget/RelativeLayout$LayoutParams;->topMargin:I

    .line 55
    iget-object v0, p0, Lcom/estrongs/android/widget/n;->B:Landroid/graphics/Rect;

    if-eqz v0, :cond_0

    .line 56
    iput v2, p1, Landroid/widget/RelativeLayout$LayoutParams;->leftMargin:I

    .line 57
    iput v2, p1, Landroid/widget/RelativeLayout$LayoutParams;->rightMargin:I

    .line 58
    iput v2, p1, Landroid/widget/RelativeLayout$LayoutParams;->bottomMargin:I

    goto :goto_1

    .line 59
    :cond_0
    sget v0, Lcom/estrongs/android/widget/n;->D:I

    iput v0, p1, Landroid/widget/RelativeLayout$LayoutParams;->bottomMargin:I

    goto :goto_1

    :cond_1
    const/4 v3, 0x1

    if-ne v0, v3, :cond_3

    const/16 v0, 0xc

    .line 60
    invoke-virtual {p1, v0, v1}, Landroid/widget/RelativeLayout$LayoutParams;->addRule(II)V

    .line 61
    iget v0, p0, Lcom/estrongs/android/widget/n;->m:I

    iget-object v1, p0, Lcom/estrongs/android/widget/n;->q:Landroid/graphics/Rect;

    iget v1, v1, Landroid/graphics/Rect;->top:I

    sub-int/2addr v0, v1

    iput v0, p1, Landroid/widget/RelativeLayout$LayoutParams;->bottomMargin:I

    .line 62
    iget-object v0, p0, Lcom/estrongs/android/widget/n;->B:Landroid/graphics/Rect;

    if-eqz v0, :cond_2

    .line 63
    iget v1, v0, Landroid/graphics/Rect;->left:I

    iput v1, p1, Landroid/widget/RelativeLayout$LayoutParams;->leftMargin:I

    .line 64
    iget v1, p0, Lcom/estrongs/android/widget/n;->p:I

    iget v3, v0, Landroid/graphics/Rect;->right:I

    sub-int/2addr v1, v3

    iput v1, p1, Landroid/widget/RelativeLayout$LayoutParams;->rightMargin:I

    .line 65
    iget-object p1, p0, Lcom/estrongs/android/widget/n;->v:Lcom/estrongs/android/widget/n$d;

    iget v0, v0, Landroid/graphics/Rect;->top:I

    invoke-virtual {p1, v2, v0, v2, v2}, Landroid/widget/RelativeLayout;->setPadding(IIII)V

    goto :goto_1

    .line 66
    :cond_2
    iget-object p1, p0, Lcom/estrongs/android/widget/n;->v:Lcom/estrongs/android/widget/n$d;

    sget v0, Lcom/estrongs/android/widget/n;->D:I

    invoke-virtual {p1, v2, v0, v2, v2}, Landroid/widget/RelativeLayout;->setPadding(IIII)V

    goto :goto_1

    :cond_3
    const/4 v1, 0x2

    if-eq v0, v1, :cond_4

    const/4 v2, 0x3

    if-ne v0, v2, :cond_6

    .line 67
    :cond_4
    iget-object v0, p0, Lcom/estrongs/android/widget/n;->B:Landroid/graphics/Rect;

    if-eqz v0, :cond_6

    .line 68
    iget-object v0, p0, Lcom/estrongs/android/widget/n;->a:Landroid/content/Context;

    const/high16 v2, 0x43a00000    # 320.0f

    invoke-static {v0, v2}, Les/fy;->a(Landroid/content/Context;F)I

    move-result v0

    .line 69
    iget-object v2, p0, Lcom/estrongs/android/widget/n;->B:Landroid/graphics/Rect;

    invoke-virtual {v2}, Landroid/graphics/Rect;->width()I

    move-result v2

    if-le v2, v0, :cond_5

    .line 70
    iget v2, p0, Lcom/estrongs/android/widget/n;->p:I

    sub-int v3, v2, v0

    div-int/2addr v3, v1

    iput v3, p1, Landroid/widget/RelativeLayout$LayoutParams;->leftMargin:I

    sub-int/2addr v2, v0

    .line 71
    div-int/2addr v2, v1

    iput v2, p1, Landroid/widget/RelativeLayout$LayoutParams;->rightMargin:I

    goto :goto_0

    .line 72
    :cond_5
    iget-object v0, p0, Lcom/estrongs/android/widget/n;->B:Landroid/graphics/Rect;

    iget v1, v0, Landroid/graphics/Rect;->left:I

    iput v1, p1, Landroid/widget/RelativeLayout$LayoutParams;->leftMargin:I

    .line 73
    iget v1, p0, Lcom/estrongs/android/widget/n;->p:I

    iget v0, v0, Landroid/graphics/Rect;->right:I

    sub-int/2addr v1, v0

    iput v1, p1, Landroid/widget/RelativeLayout$LayoutParams;->rightMargin:I

    .line 74
    :goto_0
    iget-object v0, p0, Lcom/estrongs/android/widget/n;->B:Landroid/graphics/Rect;

    iget v0, v0, Landroid/graphics/Rect;->top:I

    iput v0, p1, Landroid/widget/RelativeLayout$LayoutParams;->topMargin:I

    :cond_6
    :goto_1
    return-void
.end method

.method static synthetic a(Lcom/estrongs/android/widget/n;Z)Z
    .locals 0

    .line 1
    iput-boolean p1, p0, Lcom/estrongs/android/widget/n;->C:Z

    return p1
.end method

.method static synthetic b(Lcom/estrongs/android/widget/n;)Landroid/view/View;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/estrongs/android/widget/n;->d:Landroid/view/View;

    return-object p0
.end method

.method private b(Landroid/view/WindowManager$LayoutParams;)V
    .locals 2

    .line 11
    iget-object p1, p0, Lcom/estrongs/android/widget/n;->d:Landroid/view/View;

    if-eqz p1, :cond_3

    iget-object p1, p0, Lcom/estrongs/android/widget/n;->a:Landroid/content/Context;

    if-eqz p1, :cond_3

    iget-object p1, p0, Lcom/estrongs/android/widget/n;->b:Landroid/view/WindowManager;

    if-eqz p1, :cond_3

    .line 12
    iget-object p1, p0, Lcom/estrongs/android/widget/n;->e:Landroid/view/View;

    if-nez p1, :cond_2

    .line 13
    new-instance p1, Lcom/estrongs/android/widget/n$d;

    iget-object v0, p0, Lcom/estrongs/android/widget/n;->a:Landroid/content/Context;

    invoke-direct {p1, p0, v0}, Lcom/estrongs/android/widget/n$d;-><init>(Lcom/estrongs/android/widget/n;Landroid/content/Context;)V

    iput-object p1, p0, Lcom/estrongs/android/widget/n;->v:Lcom/estrongs/android/widget/n$d;

    .line 14
    invoke-virtual {p0}, Lcom/estrongs/android/widget/n;->d()I

    move-result p1

    const/4 v0, 0x1

    const/4 v1, -0x1

    if-eq p1, v0, :cond_1

    invoke-virtual {p0}, Lcom/estrongs/android/widget/n;->d()I

    move-result p1

    if-nez p1, :cond_0

    goto :goto_0

    .line 15
    :cond_0
    new-instance p1, Landroid/widget/RelativeLayout$LayoutParams;

    invoke-direct {p1, v1, v1}, Landroid/widget/RelativeLayout$LayoutParams;-><init>(II)V

    iput-object p1, p0, Lcom/estrongs/android/widget/n;->w:Landroid/widget/RelativeLayout$LayoutParams;

    goto :goto_1

    .line 16
    :cond_1
    :goto_0
    new-instance p1, Landroid/widget/RelativeLayout$LayoutParams;

    const/4 v0, -0x2

    invoke-direct {p1, v1, v0}, Landroid/widget/RelativeLayout$LayoutParams;-><init>(II)V

    iput-object p1, p0, Lcom/estrongs/android/widget/n;->w:Landroid/widget/RelativeLayout$LayoutParams;

    .line 17
    :goto_1
    iget-object p1, p0, Lcom/estrongs/android/widget/n;->w:Landroid/widget/RelativeLayout$LayoutParams;

    invoke-direct {p0, p1}, Lcom/estrongs/android/widget/n;->a(Landroid/widget/RelativeLayout$LayoutParams;)V

    .line 18
    iget-object p1, p0, Lcom/estrongs/android/widget/n;->v:Lcom/estrongs/android/widget/n$d;

    iget-object v0, p0, Lcom/estrongs/android/widget/n;->d:Landroid/view/View;

    iget-object v1, p0, Lcom/estrongs/android/widget/n;->w:Landroid/widget/RelativeLayout$LayoutParams;

    invoke-virtual {p1, v0, v1}, Landroid/widget/RelativeLayout;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V

    .line 19
    iget-object p1, p0, Lcom/estrongs/android/widget/n;->v:Lcom/estrongs/android/widget/n$d;

    iput-object p1, p0, Lcom/estrongs/android/widget/n;->e:Landroid/view/View;

    .line 20
    :cond_2
    iget-object p1, p0, Lcom/estrongs/android/widget/n;->d:Landroid/view/View;

    const/4 v0, 0x0

    invoke-virtual {p1, v0}, Landroid/view/View;->setVisibility(I)V

    return-void

    .line 21
    :cond_3
    new-instance p1, Ljava/lang/IllegalStateException;

    const-string v0, "You must specify a valid content view by calling setContentView() before attempting to show the popup."

    invoke-direct {p1, v0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V

    throw p1
.end method

.method private d(I)I
    .locals 1

    const v0, -0x68219

    and-int/2addr p1, v0

    .line 1
    iget-boolean v0, p0, Lcom/estrongs/android/widget/n;->u:Z

    if-eqz v0, :cond_0

    const v0, 0x8000

    or-int/2addr p1, v0

    .line 2
    :cond_0
    iget-boolean v0, p0, Lcom/estrongs/android/widget/n;->f:Z

    if-nez v0, :cond_1

    or-int/lit8 p1, p1, 0x8

    .line 3
    :cond_1
    iget-boolean v0, p0, Lcom/estrongs/android/widget/n;->g:Z

    if-nez v0, :cond_2

    or-int/lit8 p1, p1, 0x10

    .line 4
    :cond_2
    iget-boolean v0, p0, Lcom/estrongs/android/widget/n;->h:Z

    if-eqz v0, :cond_3

    const/high16 v0, 0x40000

    or-int/2addr p1, v0

    .line 5
    :cond_3
    iget-boolean v0, p0, Lcom/estrongs/android/widget/n;->i:Z

    if-nez v0, :cond_4

    or-int/lit16 p1, p1, 0x200

    .line 6
    :cond_4
    iget-boolean v0, p0, Lcom/estrongs/android/widget/n;->j:Z

    if-eqz v0, :cond_5

    or-int/lit16 p1, p1, 0x100

    :cond_5
    return p1
.end method

.method private d(Z)I
    .locals 12

    .line 7
    iget v0, p0, Lcom/estrongs/android/widget/n;->y:I

    const/high16 v1, 0x3f800000    # 1.0f

    const/4 v2, 0x0

    if-nez v0, :cond_0

    .line 8
    iget-object v0, p0, Lcom/estrongs/android/widget/n;->q:Landroid/graphics/Rect;

    invoke-virtual {v0}, Landroid/graphics/Rect;->centerX()I

    move-result v0

    int-to-float v0, v0

    iget v1, p0, Lcom/estrongs/android/widget/n;->l:I

    int-to-float v1, v1

    div-float v1, v0, v1

    const/4 v0, 0x0

    goto :goto_1

    :cond_0
    const/4 v3, 0x1

    if-ne v0, v3, :cond_1

    .line 9
    iget-object v0, p0, Lcom/estrongs/android/widget/n;->q:Landroid/graphics/Rect;

    invoke-virtual {v0}, Landroid/graphics/Rect;->centerX()I

    move-result v0

    int-to-float v0, v0

    iget v2, p0, Lcom/estrongs/android/widget/n;->l:I

    int-to-float v2, v2

    div-float/2addr v0, v2

    move v1, v0

    const/high16 v0, 0x3f800000    # 1.0f

    goto :goto_1

    :cond_1
    const/4 v3, 0x2

    if-ne v0, v3, :cond_2

    .line 10
    iget-object v0, p0, Lcom/estrongs/android/widget/n;->q:Landroid/graphics/Rect;

    invoke-virtual {v0}, Landroid/graphics/Rect;->centerY()I

    move-result v0

    iget-object v1, p0, Lcom/estrongs/android/widget/n;->B:Landroid/graphics/Rect;

    iget v3, v1, Landroid/graphics/Rect;->top:I

    sub-int/2addr v0, v3

    int-to-float v0, v0

    iget v1, v1, Landroid/graphics/Rect;->bottom:I

    sub-int/2addr v1, v3

    int-to-float v1, v1

    div-float v1, v0, v1

    move v0, v1

    goto :goto_0

    :cond_2
    const/4 v3, 0x3

    if-ne v0, v3, :cond_3

    .line 11
    iget-object v0, p0, Lcom/estrongs/android/widget/n;->q:Landroid/graphics/Rect;

    invoke-virtual {v0}, Landroid/graphics/Rect;->centerY()I

    move-result v0

    iget-object v2, p0, Lcom/estrongs/android/widget/n;->B:Landroid/graphics/Rect;

    iget v3, v2, Landroid/graphics/Rect;->top:I

    sub-int/2addr v0, v3

    int-to-float v0, v0

    iget v2, v2, Landroid/graphics/Rect;->bottom:I

    sub-int/2addr v2, v3

    int-to-float v2, v2

    div-float/2addr v0, v2

    goto :goto_1

    :cond_3
    const/4 v0, 0x0

    :goto_0
    const/4 v1, 0x0

    .line 12
    :goto_1
    iget-object v2, p0, Lcom/estrongs/android/widget/n;->z:Landroid/view/animation/ScaleAnimation;

    if-eqz v2, :cond_4

    if-eqz p1, :cond_5

    .line 13
    :cond_4
    new-instance v11, Landroid/view/animation/ScaleAnimation;

    const/4 v3, 0x0

    const/high16 v4, 0x3f800000    # 1.0f

    const/4 v5, 0x0

    const/high16 v6, 0x3f800000    # 1.0f

    const/4 v7, 0x1

    const/4 v9, 0x1

    move-object v2, v11

    move v8, v1

    move v10, v0

    invoke-direct/range {v2 .. v10}, Landroid/view/animation/ScaleAnimation;-><init>(FFFFIFIF)V

    iput-object v11, p0, Lcom/estrongs/android/widget/n;->z:Landroid/view/animation/ScaleAnimation;

    const-wide/16 v2, 0x320

    .line 14
    invoke-virtual {v11, v2, v3}, Landroid/view/animation/ScaleAnimation;->setDuration(J)V

    .line 15
    iget-object v2, p0, Lcom/estrongs/android/widget/n;->z:Landroid/view/animation/ScaleAnimation;

    new-instance v3, Landroid/view/animation/OvershootInterpolator;

    const v4, 0x3f8ccccd    # 1.1f

    invoke-direct {v3, v4}, Landroid/view/animation/OvershootInterpolator;-><init>(F)V

    .line 16
    invoke-virtual {v2, v3}, Landroid/view/animation/ScaleAnimation;->setInterpolator(Landroid/view/animation/Interpolator;)V

    .line 17
    iget-object v2, p0, Lcom/estrongs/android/widget/n;->z:Landroid/view/animation/ScaleAnimation;

    new-instance v3, Lcom/estrongs/android/widget/n$a;

    invoke-direct {v3, p0}, Lcom/estrongs/android/widget/n$a;-><init>(Lcom/estrongs/android/widget/n;)V

    invoke-virtual {v2, v3}, Landroid/view/animation/ScaleAnimation;->setAnimationListener(Landroid/view/animation/Animation$AnimationListener;)V

    .line 18
    :cond_5
    iget-object v2, p0, Lcom/estrongs/android/widget/n;->A:Landroid/view/animation/ScaleAnimation;

    if-eqz v2, :cond_6

    if-eqz p1, :cond_7

    .line 19
    :cond_6
    new-instance p1, Landroid/view/animation/ScaleAnimation;

    const/high16 v3, 0x3f800000    # 1.0f

    const/4 v4, 0x0

    const/high16 v5, 0x3f800000    # 1.0f

    const/4 v6, 0x0

    const/4 v7, 0x1

    const/4 v9, 0x1

    move-object v2, p1

    move v8, v1

    move v10, v0

    invoke-direct/range {v2 .. v10}, Landroid/view/animation/ScaleAnimation;-><init>(FFFFIFIF)V

    iput-object p1, p0, Lcom/estrongs/android/widget/n;->A:Landroid/view/animation/ScaleAnimation;

    const-wide/16 v0, 0x190

    .line 20
    invoke-virtual {p1, v0, v1}, Landroid/view/animation/ScaleAnimation;->setDuration(J)V

    .line 21
    iget-object p1, p0, Lcom/estrongs/android/widget/n;->A:Landroid/view/animation/ScaleAnimation;

    new-instance v0, Landroid/view/animation/AccelerateInterpolator;

    invoke-direct {v0}, Landroid/view/animation/AccelerateInterpolator;-><init>()V

    invoke-virtual {p1, v0}, Landroid/view/animation/ScaleAnimation;->setInterpolator(Landroid/view/animation/Interpolator;)V

    .line 22
    new-instance p1, Lcom/estrongs/android/widget/n$b;

    invoke-direct {p1, p0}, Lcom/estrongs/android/widget/n$b;-><init>(Lcom/estrongs/android/widget/n;)V

    .line 23
    iget-object v0, p0, Lcom/estrongs/android/widget/n;->A:Landroid/view/animation/ScaleAnimation;

    invoke-virtual {v0, p1}, Landroid/view/animation/ScaleAnimation;->setAnimationListener(Landroid/view/animation/Animation$AnimationListener;)V

    .line 24
    :cond_7
    iget p1, p0, Lcom/estrongs/android/widget/n;->x:I

    return p1
.end method


# virtual methods
.method public a()V
    .locals 3

    .line 33
    invoke-virtual {p0}, Lcom/estrongs/android/widget/n;->e()Z

    move-result v0

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/estrongs/android/widget/n;->d:Landroid/view/View;

    invoke-virtual {v0}, Landroid/view/View;->getVisibility()I

    move-result v0

    const/16 v1, 0x8

    if-eq v0, v1, :cond_0

    .line 34
    invoke-virtual {p0}, Lcom/estrongs/android/widget/n;->f()V

    const/4 v0, 0x0

    .line 35
    iput-boolean v0, p0, Lcom/estrongs/android/widget/n;->c:Z

    .line 36
    :cond_0
    iget-object v0, p0, Lcom/estrongs/android/widget/n;->e:Landroid/view/View;

    iget-object v1, p0, Lcom/estrongs/android/widget/n;->d:Landroid/view/View;

    if-eq v0, v1, :cond_1

    instance-of v2, v0, Landroid/view/ViewGroup;

    if-eqz v2, :cond_1

    .line 37
    check-cast v0, Landroid/view/ViewGroup;

    invoke-virtual {v0, v1}, Landroid/view/ViewGroup;->removeView(Landroid/view/View;)V

    :cond_1
    const/4 v0, 0x0

    .line 38
    iput-object v0, p0, Lcom/estrongs/android/widget/n;->e:Landroid/view/View;

    .line 39
    iget-object v0, p0, Lcom/estrongs/android/widget/n;->t:Lcom/estrongs/android/widget/n$c;

    if-eqz v0, :cond_2

    .line 40
    invoke-interface {v0}, Lcom/estrongs/android/widget/n$c;->onDismiss()V

    :cond_2
    return-void
.end method

.method public a(I)V
    .locals 0

    .line 47
    iput p1, p0, Lcom/estrongs/android/widget/n;->y:I

    return-void
.end method

.method public a(II)V
    .locals 0

    return-void
.end method

.method public a(Landroid/graphics/drawable/Drawable;)V
    .locals 0

    .line 3
    iput-object p1, p0, Lcom/estrongs/android/widget/n;->r:Landroid/graphics/drawable/Drawable;

    return-void
.end method

.method public a(Landroid/view/View;)V
    .locals 4

    const/4 v0, 0x2

    new-array v0, v0, [I

    .line 41
    invoke-virtual {p1, v0}, Landroid/view/View;->getLocationInWindow([I)V

    const/4 v1, 0x0

    .line 42
    aget v1, v0, v1

    const/4 v2, 0x1

    .line 43
    aget v0, v0, v2

    .line 44
    invoke-virtual {p1}, Landroid/view/View;->getWidth()I

    move-result v2

    add-int/2addr v2, v1

    .line 45
    invoke-virtual {p1}, Landroid/view/View;->getHeight()I

    move-result p1

    add-int/2addr p1, v0

    .line 46
    new-instance v3, Landroid/graphics/Rect;

    invoke-direct {v3, v1, v0, v2, p1}, Landroid/graphics/Rect;-><init>(IIII)V

    iput-object v3, p0, Lcom/estrongs/android/widget/n;->q:Landroid/graphics/Rect;

    return-void
.end method

.method public a(Landroid/view/View;III)V
    .locals 1

    .line 5
    invoke-virtual {p0}, Lcom/estrongs/android/widget/n;->e()Z

    move-result v0

    if-nez v0, :cond_1

    iget-object v0, p0, Lcom/estrongs/android/widget/n;->d:Landroid/view/View;

    if-eqz v0, :cond_1

    iget-boolean v0, p0, Lcom/estrongs/android/widget/n;->C:Z

    if-eqz v0, :cond_0

    goto :goto_0

    :cond_0
    const/4 v0, 0x1

    .line 6
    iput-boolean v0, p0, Lcom/estrongs/android/widget/n;->c:Z

    .line 7
    invoke-virtual {p1}, Landroid/view/View;->getWindowToken()Landroid/os/IBinder;

    move-result-object v0

    .line 8
    invoke-direct {p0, v0}, Lcom/estrongs/android/widget/n;->a(Landroid/os/IBinder;)Landroid/view/WindowManager$LayoutParams;

    move-result-object v0

    iput-object v0, p0, Lcom/estrongs/android/widget/n;->n:Landroid/view/WindowManager$LayoutParams;

    const/4 v0, 0x0

    .line 9
    invoke-direct {p0, v0}, Lcom/estrongs/android/widget/n;->d(Z)I

    .line 10
    invoke-virtual {p0, p1}, Lcom/estrongs/android/widget/n;->a(Landroid/view/View;)V

    .line 11
    iget-object p1, p0, Lcom/estrongs/android/widget/n;->n:Landroid/view/WindowManager$LayoutParams;

    invoke-direct {p0, p1}, Lcom/estrongs/android/widget/n;->b(Landroid/view/WindowManager$LayoutParams;)V

    .line 12
    iget-object p1, p0, Lcom/estrongs/android/widget/n;->n:Landroid/view/WindowManager$LayoutParams;

    iput p2, p1, Landroid/view/WindowManager$LayoutParams;->gravity:I

    .line 13
    iput p3, p1, Landroid/view/WindowManager$LayoutParams;->x:I

    .line 14
    iput p4, p1, Landroid/view/WindowManager$LayoutParams;->y:I

    .line 15
    invoke-direct {p0, p1}, Lcom/estrongs/android/widget/n;->a(Landroid/view/WindowManager$LayoutParams;)V

    :cond_1
    :goto_0
    return-void
.end method

.method public a(Z)V
    .locals 0

    .line 4
    iput-boolean p1, p0, Lcom/estrongs/android/widget/n;->f:Z

    return-void
.end method

.method protected b()V
    .locals 0

    .line 22
    invoke-virtual {p0}, Lcom/estrongs/android/widget/n;->f()V

    return-void
.end method

.method public b(I)V
    .locals 0

    .line 10
    iput p1, p0, Lcom/estrongs/android/widget/n;->m:I

    return-void
.end method

.method public b(Landroid/view/View;)V
    .locals 1

    .line 2
    invoke-virtual {p0}, Lcom/estrongs/android/widget/n;->e()Z

    move-result v0

    if-eqz v0, :cond_0

    return-void

    .line 3
    :cond_0
    iput-object p1, p0, Lcom/estrongs/android/widget/n;->d:Landroid/view/View;

    .line 4
    iget-object v0, p0, Lcom/estrongs/android/widget/n;->a:Landroid/content/Context;

    if-nez v0, :cond_1

    .line 5
    invoke-virtual {p1}, Landroid/view/View;->getContext()Landroid/content/Context;

    move-result-object p1

    iput-object p1, p0, Lcom/estrongs/android/widget/n;->a:Landroid/content/Context;

    .line 6
    :cond_1
    iget-object p1, p0, Lcom/estrongs/android/widget/n;->b:Landroid/view/WindowManager;

    if-nez p1, :cond_2

    .line 7
    iget-object p1, p0, Lcom/estrongs/android/widget/n;->a:Landroid/content/Context;

    const-string v0, "window"

    .line 8
    invoke-virtual {p1, v0}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object p1

    check-cast p1, Landroid/view/WindowManager;

    iput-object p1, p0, Lcom/estrongs/android/widget/n;->b:Landroid/view/WindowManager;

    :cond_2
    return-void
.end method

.method public b(Z)V
    .locals 0

    .line 9
    iput-boolean p1, p0, Lcom/estrongs/android/widget/n;->h:Z

    return-void
.end method

.method public c()Landroid/graphics/Rect;
    .locals 1

    .line 3
    iget-object v0, p0, Lcom/estrongs/android/widget/n;->q:Landroid/graphics/Rect;

    return-object v0
.end method

.method public c(I)V
    .locals 0

    .line 2
    iput p1, p0, Lcom/estrongs/android/widget/n;->l:I

    return-void
.end method

.method public c(Z)V
    .locals 0

    .line 1
    iput-boolean p1, p0, Lcom/estrongs/android/widget/n;->g:Z

    return-void
.end method

.method public d()I
    .locals 1

    .line 25
    iget v0, p0, Lcom/estrongs/android/widget/n;->y:I

    return v0
.end method

.method public e()Z
    .locals 1

    .line 1
    iget-boolean v0, p0, Lcom/estrongs/android/widget/n;->c:Z

    return v0
.end method

.method public f()V
    .locals 2

    const/4 v0, 0x0

    .line 1
    iput-boolean v0, p0, Lcom/estrongs/android/widget/n;->C:Z

    .line 2
    iget-object v0, p0, Lcom/estrongs/android/widget/n;->d:Landroid/view/View;

    const/16 v1, 0x8

    invoke-virtual {v0, v1}, Landroid/view/View;->setVisibility(I)V

    .line 3
    invoke-virtual {p0}, Lcom/estrongs/android/widget/n;->e()Z

    move-result v0

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/estrongs/android/widget/n;->e:Landroid/view/View;

    if-eqz v0, :cond_0

    .line 4
    :try_start_0
    iget-object v1, p0, Lcom/estrongs/android/widget/n;->b:Landroid/view/WindowManager;

    invoke-interface {v1, v0}, Landroid/view/WindowManager;->removeView(Landroid/view/View;)V
    :try_end_0
    .catch Ljava/lang/IllegalArgumentException; {:try_start_0 .. :try_end_0} :catch_0

    :catch_0
    :cond_0
    return-void
.end method

.method protected g()V
    .locals 3

    .line 1
    iget-boolean v0, p0, Lcom/estrongs/android/widget/n;->C:Z

    if-eqz v0, :cond_0

    return-void

    .line 2
    :cond_0
    iget-object v0, p0, Lcom/estrongs/android/widget/n;->b:Landroid/view/WindowManager;

    iget-object v1, p0, Lcom/estrongs/android/widget/n;->e:Landroid/view/View;

    iget-object v2, p0, Lcom/estrongs/android/widget/n;->n:Landroid/view/WindowManager$LayoutParams;

    invoke-interface {v0, v1, v2}, Landroid/view/WindowManager;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V

    const/4 v0, 0x1

    .line 3
    iput-boolean v0, p0, Lcom/estrongs/android/widget/n;->c:Z

    return-void
.end method
